const Layout = () => import("@/layout/index.vue");
import Home2 from "@iconify-icons/ri/home-office-line";

export default {
  path: "/task",
  name: "Task",
  component: Layout,
  meta: {
    title: "在线办公",
    icon: Home2,
    auths: ["task"]
  },
  children: [
    {
      path: "/task/order",
      name: "TaskOrder",
      component: () => import("@/views/order/order/index.vue"),
      meta: {
        title: "工单管理",
        auths: ["taskorder"]
      }
    },
    {
      path: "/task/order/apply",
      name: "TaskOrderApply",
      component: () => import("@/views/order/apply/index.vue"),
      meta: {
        title: "工单申请",
        auths: ["taskorderapply"]
      }
    },
    {
      path: "/task/orderinst",
      name: "TaskOrderInst",
      component: () => import("@/views/order/inst/index.vue"),
      meta: {
        title: "所有申请",
        auths: ["taskorderinst"]
      }
    },
    {
      path: "/task/orderinst/mine",
      name: "TaskOrderInstMine",
      component: () => import("@/views/order/inst/mine.vue"),
      meta: {
        title: "我的申请",
        auths: ["taskorderinstmine"]
      }
    },
    {
      path: "/task/todo",
      name: "TaskTodo",
      component: () => import("@/views/flow/tasktodo/index.vue"),
      meta: {
        title: "待办任务",
        auths: ["tasktodo"]
      }
    },
    {
      path: "/task/done",
      name: "TaskDone",
      component: () => import("@/views/flow/taskdone/index.vue"),
      meta: {
        title: "已办任务",
        auths: ["taskdone"]
      }
    },
    {
      path: "/task/sign",
      name: "TaskSign",
      component: () => import("@/views/flow/tasksign/index.vue"),
      meta: {
        title: "公共任务",
        auths: ["tasksign"]
      }
    }
  ]
} as RouteConfigsTable;
